<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册界面</title>
    <script src="/html/js/axios.min.js"></script>
    <script src="/html/js/util.js"></script>
    <script>
        async function showUser(){
            let info =await ajaxGet("/user/add",{
                name:$("name").vlaue,
                sex:$("sex").value,
                money:$("money").value,
                birthday:$("birthday").value
            });
            if (info == "ok"){
                location.href="/html/showIndex.html"
            }
        }
    </script>
</head>
<body>
    用户名：<input type="text" id="name">
    性&emsp;别：<input type="text" id="sex">
    工&emsp;资：<input type="text" id="money">
    生&emsp;日：<input type="text" id="birthday">
    <input type="button" value="注册" onclick="showUser()">
</body>
</html>